package com.goldze.mvvmhabit.entity;

import java.util.List;

public class NewUiEntity {
    private int code;
    private String msg;
    public boolean isOk() {
        return code == 0||code==200;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private int total;
    private List<Row> rows;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<Row> getRows() {
        return rows;
    }

    public void setRows(List<Row> rows) {
        this.rows = rows;
    }

    public class Row{
        private String name;
        private String mainCode;
        private String avatorUrl;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getMainCode() {
            return mainCode;
        }

        public void setMainCode(String mainCode) {
            this.mainCode = mainCode;
        }

        public String getAvatorUrl() {
            return avatorUrl;
        }

        public void setAvatorUrl(String avatorUrl) {
            this.avatorUrl = avatorUrl;
        }
    }
}
